<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>申请开票</title>
    <link rel="stylesheet" href="mui/css/mui.css">
    <script src="mui/js/mui.js"></script>
    <script src="js/jquery-1.11.3.js"></script>
    <link rel="stylesheet" href="css/style.css?v1.1.2">
</head>
<body>
<div class="mui-content invoice-details">
    <ul>
        <li>订单数量：<span>2</span></li>
        <li>订单金额：<span>1098.00元</span></li>
        <li>发票金额：<span class="blue">980.00元</span></li>
    </ul>

    <div class="invoice-apply">
        <div class="mui-row invoice-apply-top">
            <div class="mui-col-xs-6"><a class="invoice-type active" href="javascript:void (0)" data-type="0">企业</a></div>
            <div class="mui-col-xs-6"><a class="invoice-type" href="javascript:void (0)" data-type="1">个人</a></div>
        </div>
        <div class="mui-row invoice-apply-list">
            <div class="mui-col-xs-4">发票类型</div>
            <div class="mui-col-xs-8">增值税电子发票</div>
        </div>
        <div class="mui-row invoice-apply-list">
            <div class="mui-col-xs-4">发票抬头<span class="red1">*</span></div>
            <div class="mui-col-xs-8"><input class="invoice-name" type="text" placeholder="请输入公司名称"></div>
        </div>
        <div class="mui-row invoice-apply-list invoice-enterprise">
            <div class="mui-col-xs-4">增值税号<span class="red1">*</span></div>
            <div class="mui-col-xs-8"><input type="text" placeholder="请输入增值税号"></div>
        </div>
        <div class="mui-row invoice-apply-list">
            <div class="mui-col-xs-4">发票内容</div>
            <div class="mui-col-xs-8"><input type="text" placeholder="" readonly value="*企业管理服务 *物业管理费"></div>
        </div>
        <div class="mui-row invoice-apply-list last">
            <div class="mui-col-xs-4">邮箱<span class="red1">*</span></div>
            <div class="mui-col-xs-8"><input type="text" placeholder="请输入邮箱"></div>
        </div>
        <a onclick="submit()" class="invoice-details-btn" href="#">提交申请</a>
        <p class="red1">开具电子发票当前只支持针对物业管理费，其他费用暂不支持</p>
    </div>

</div>
<script src="layer_mobile/layer.js"></script>
<script>
    $(".invoice-type").click(function () {
       let type = $(this).data('type');
       if(type === 1){
           $(".invoice-enterprise").hide();
           $(".invoice-name").attr("placeholder","请输入个人信息");
       }else{
           $(".invoice-enterprise").show();
           $(".invoice-name").attr("placeholder","请输入公司名称");
       }
       $(this).addClass("active").parent("div").siblings().children("a").removeClass("active");
    });
    function submit() {
        layer.open({
            type: 1
            ,content: `<div class="invoice-pop"><h1>请确认邮箱地址</h1><div class="invoice-pop-content"><input type="text" value="785485448874@qq.com"></div><div><a href="invoice_history.html">确认</a></div></div>`
            ,anim: 'false'
            ,style: `width:80%;border-radius:.5rem;`
        })
    }
</script>
</body>
</html>